import React, { Component } from 'react'
import style from './author.module.css'
export default class index extends Component {
    render() {
        return (
            <div>
                  <div className={style.content}>
                          <span>头像</span>
                          <i>品房达人</i>
                      {   
                      !this.state.show&&<button onClick={()=>{
                        this.state.show=!this.state.show
                        this.state.ida+=1
                          this.setState({})
                      }}>+关注</button>
                          }
                     {
                         this.state.show&& <button onClick={()=>{
                            this.state.show=!this.state.show
                            this.state.ida-=1
                            this.setState({})
                            
                        
                        }}>已关注</button>
                     }
                      </div >        
            </div>
        )
    }
}
